﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WiMo.Games.MathLib.Calculus
{
    public abstract class ODE
    {
        private int _qtyQuations;
        private float[] _q;
        private float _s;

        public ODE(int qtyEquations)
        {
            _qtyQuations = qtyEquations;
            _q = new float[qtyEquations];
        }

        public float[] Q
        {
            get { return _q; }
        }

        public int QtyEquations
        {
            get { return _qtyQuations; }
        }

        public float S
        {
            get { return _s; }
            set { _s = value; }
        }

        public abstract float[] GetRightHandSide(float s, float[] q, float[] deltaQ, float ds, float scale);
    }
}
